package com.example.design.shejimoshi.structure.qiaojie.improve;

import com.example.design.shejimoshi.structure.qiaojie.反例.NotificationEmergencyLevel;
import com.example.design.shejimoshi.structure.qiaojie.improve.sender.MsgSender;

public class SevereNotification extends Notification {
    public SevereNotification(MsgSender msgSender) {
        super(msgSender);
    }

    @Override
    public void notify(String message) {
        msgSender.send(message);
    }


    @Override
    public NotificationEmergencyLevel getLevel() {
        return NotificationEmergencyLevel.SEVERE;
    }
}
